home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / text / hyper / ADtoHT2_0.lha / MyLib.lha / include / stdarg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-04  |  436 b   |  16 lines

  1. /* $VER: stdarg.h 1.0 (02.03.95) */
  2.  
  3. #ifndef _STDARG_H_
  4. #define    _STDARG_H_
  5.  
  6. #ifndef _STDDEF_H_
  7. #include <stddef.h>
  8. #endif
  9.  
  10. #define    va_arg(ap, type) ((type *)(ap += sizeof(type) < sizeof(int) ? (abort(), 0) : sizeof(type)))[-1]
  11. #define    va_end(ap)
  12. #define    __va_promote(type) (((sizeof(type) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
  13. #define    va_start(ap, last) (ap = ((char *)&(last) + __va_promote(last)))
  14.  
  15. #endif /* _STDARG_H_ */
  16.